package edu.cmu.cs.stage3.alice.authoringtool.event;

public class AuthoringToolStateChangedEvent {

 public final static int AUTHORING_STATE = 1;
 public final static int RUNTIME_STATE = 3;

 private int currentState;
 private int previousState;
 private edu.cmu.cs.stage3.alice.core.World world;

 public AuthoringToolStateChangedEvent( int previousState, int currentState, edu.cmu.cs.stage3.alice.core.World world ) {
  this.currentState = currentState;
  this.previousState = previousState;
  this.world = world;
 }

 /**
  * @deprecated Please use getCurrentState() instead
  */
 //Leo @Deprecated
 public int getState() {
  return getCurrentState();
 }

 public int getCurrentState() {
  return currentState;
 }

 public int getPreviousState() {
  return previousState;
 }

 public edu.cmu.cs.stage3.alice.core.World getWorld() {
  return world;
 }

}
